<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
  </head>
  <body>
  
  </body>
  
  <script>
    /* 1s到达后setTimeout进入宏任务队列，知道调用栈for循环完毕后查看微任务队列发现无任务，再检查宏任务队列取出setTimeout执行 */
    setTimeout(() => console.log('setTimeout'), 1000);
    for (let count = 0; count < 10000000000; count++) ;
  </script>
</html>